package cn.edu.scau.cmi.dengzejun.chapter08;

public class DangerException extends Exception {
	String message;
	final String messages="overweight";
	
	public String warnMess() {
		return messages;
	}
	
	public DangerException() {
		message = "Dangerous stuffs!";
		return;
	}

	public void toShow() {
		System.out.print(message + " ");
		return;
	}
}
